let envVersion
// #ifdef MP-WEIXIN
envVersion = __wxConfig.envVersion
// #endif
// #ifndef MP-WEIXIN
envVersion = 'develop'
// #endif
// #ifdef DEV
envVersion = 'develop'
// #endif
// #ifdef TEST
envVersion = 'trial'
// #endif
// #ifdef PRODUCT
envVersion = 'release'
// #endif

const URL_CONFIG = {
	develop: {
		baseImgUrl: 'https://127.0.0.1:9025/',
		uploadUrl: 'https://127.0.0.1:9025/prophet/upload',
		apiBaseUrl: 'https://127.0.0.1:9025/prophet',
		baseUrl: 'https://127.0.0.1:9025',
	},
	trial: {
		baseImgUrl: 'https://yj.xiesinder.cn/',
		uploadUrl: 'https://yj.xiesinder.cn/prophet/upload',
		apiBaseUrl: 'https://yj.xiesinder.cn/prophet',
		baseUrl: 'https://yj.xiesinder.cn',
	},
	release: {
		baseImgUrl: 'https://yj.xiesinder.cn/',
		uploadUrl: 'https://yj.xiesinder.cn/prophet/upload',
		apiBaseUrl: 'https://yj.xiesinder.cn/prophet',
		baseUrl: 'https://yj.xiesinder.cn',
	}
}

// 文件服务下载路径
let baseImgUrl = URL_CONFIG[envVersion].baseImgUrl
// 上传文件服务路径
let uploadUrl = URL_CONFIG[envVersion].uploadUrl
// api基础路径
let apiBaseUrl = URL_CONFIG[envVersion].apiBaseUrl
// 基础路径
let baseUrl= URL_CONFIG[envVersion].baseUrl
// 请求时的token字段名
const HTTP_TOKEN_KEY = 'token'

export default {
	baseUrl,
	apiBaseUrl,
	baseImgUrl,
	uploadUrl,
	HTTP_TOKEN_KEY
}
